#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Times;
using Cephei.QL.Indexes;
using Cephei.QL;
namespace Cephei.QL.Instruments
{
     // <summary> 
	// ! This class provides a more comfortable way to instantiate standard market cap and floor.
	// </summary>
    [Guid ("BF30A8CA-8542-4032-88F7-8F01DA53D51E"),ComVisible(true)]
	public interface IMakeCapFloor 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Cephei.QL.Instruments.IMakeCapFloor WithCalendar(Cephei.QL.Times.ICalendar cal);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithConvention(QL.Times.BusinessDayConventionEnum bdc);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithDayCount(Cephei.QL.Times.IDayCounter dc);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithEffectiveDate(DateTime effectiveDate, Boolean firstCapletExcluded);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithEndOfMonth(Microsoft.FSharp.Core.FSharpOption<Boolean> flag);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithFirstDate(DateTime d);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithNextToLastDate(DateTime d);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithNominal(Double n);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithPricingEngine(Cephei.QL.IPricingEngine engine);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithRule(QL.Times.DateGeneration.RuleEnum r);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithTenor(Cephei.QL.Times.IPeriod t);
        
		 Cephei.QL.Instruments.IMakeCapFloor WithTerminationDateConvention(QL.Times.BusinessDayConventionEnum bdc);
        
		 Cephei.QL.Instruments.IMakeCapFloor AsOptionlet(Microsoft.FSharp.Core.FSharpOption<Boolean> b);
    }

    // <summary> 
	// ! This class provides a more comfortable way to instantiate standard market cap and floor. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IMakeCapFloor_Factory // : Collection_Factory<IMakeCapFloor, ICell<IMakeCapFloor>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    IMakeCapFloor Create (QL.Instruments.CapFloor.TypeEnum capFloorType, Cephei.QL.Times.IPeriod capFloorTenor, Cephei.QL.Indexes.IIborIndex iborIndex, Microsoft.FSharp.Core.FSharpOption<Double> strike, Microsoft.FSharp.Core.FSharpOption<Cephei.QL.Times.IPeriod> forwardStart);
    }
}

